package com.example.takephotovideo.takephotovideo;

import java.io.Serializable;
import java.util.List;

/**
 * @功能: 本地选择图片时Bean
 * @Creat 2020/3/18 11:44
 * @User Lmy
 * @Compony JinAnChang
 */
public class RvListBean implements Serializable {

    /**
     * result : 200
     * errorCode : null
     * errorMsg : 获取成功
     * resultData : [{"id":31,"name":"到访图片","type":3,"keydowntype":1,"isbitian":1,"morenlist":null,"value":"http://47.100.250.181:8080/images/37WKKVZF.jpg,http://47.100.250.181:8080/images/37WKKVZF.jpg"},{"id":48,"name":"图片","type":3,"keydowntype":1,"isbitian":0,"morenlist":null,"value":null},{"id":49,"name":"图片","type":3,"keydowntype":1,"isbitian":0,"morenlist":null,"value":null}]
     */

    private String result;
    private Object errorCode;
    private String errorMsg;
    private List<ResultDataBean> resultData;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Object getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Object errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public List<ResultDataBean> getResultData() {
        return resultData;
    }

    public void setResultData(List<ResultDataBean> resultData) {
        this.resultData = resultData;
    }

    public static class ResultDataBean {
        /**
         * id : 31
         * name : 到访图片
         * type : 3
         * keydowntype : 1
         * isbitian : 1
         * morenlist : null
         * value : http://47.100.250.181:8080/images/37WKKVZF.jpg,http://47.100.250.181:8080/images/37WKKVZF.jpg
         */

        private int id;
        private String name;
        private int type;
        private int keydowntype;
        private int isbitian;
        private Object morenlist;
        private String value;
        private List<PhotoVideoListBean> photoVideoListBeanList;

        public List<PhotoVideoListBean> getPhotoVideoListBeanList() {
            return photoVideoListBeanList;
        }

        public void setPhotoVideoListBeanList(List<PhotoVideoListBean> photoVideoListBeanList) {
            this.photoVideoListBeanList = photoVideoListBeanList;
        }

        public static class PhotoVideoListBean implements Serializable {
            public String fileurl;
            private String uuid;
            private boolean isVideo;//用于标识是否是 图片 视频 还是添加按钮 0 图片 1 视频 2 添加按钮
            public PhotoVideoListBean(String fileurl, boolean isVideo,String uuids) {
                this.fileurl = fileurl;
                this.isVideo = isVideo;
                this.uuid = uuids;
            }

            public String getUuid() {
                return uuid;
            }

            public void setUuid(String uuid) {
                this.uuid = uuid;
            }

            public String getFileurl() {
                return fileurl;
            }
            public void setFileurl(String fileurl) {
                this.fileurl = fileurl;
            }
            public boolean isVideo() {
                return isVideo;
            }
            public void setVideo(boolean video) {
                isVideo = video;
            }

            @Override
            public String toString() {
                return "PhotoVideoListBean{" +
                        "fileurl='" + fileurl + '\'' +
                        ", isVideo=" + isVideo +
                        '}';
            }
        }



        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getKeydowntype() {
            return keydowntype;
        }

        public void setKeydowntype(int keydowntype) {
            this.keydowntype = keydowntype;
        }

        public int getIsbitian() {
            return isbitian;
        }

        public void setIsbitian(int isbitian) {
            this.isbitian = isbitian;
        }

        public Object getMorenlist() {
            return morenlist;
        }

        public void setMorenlist(Object morenlist) {
            this.morenlist = morenlist;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
